/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.yuhanginfo.modules.sys.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.yuhanginfo.common.persistence.DataEntity;

/**
 * 会员操作历史Entity
 * @author lvls
 * @version 2017-09-21
 */
public class UserEditHistroy extends DataEntity<UserEditHistroy> {
	
	private static final long serialVersionUID = 1L;
	private String userId;		// 用户id
	private BigDecimal sum;			// 金额
	private BigDecimal money;		// 信用额度
	private BigDecimal remainMoney;		// 可用额度
	private Integer moneyType;		// 额度调整类型 0额度调整 1冻结 2解冻
	private String discount;		// 折扣系数
	private String sysUserId;		// 所属业务员
	private String beStoreCode;		// 所属门店号
	private String beStoreCnName;		// 所属门店名称
	private String orderStoreCode;		// 下单门店号，多个分号分隔
	private String orderStoreCnName;		// 下单门店名称,多个分号分隔
	private String sysUserName;
	
	public UserEditHistroy() {
		super();
	}

	public UserEditHistroy(String id){
		super(id);
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	
	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}
	
	@Length(min=0, max=64, message="所属业务员长度必须介于 0 和 64 之间")
	public String getSysUserId() {
		return sysUserId;
	}

	public void setSysUserId(String sysUserId) {
		this.sysUserId = sysUserId;
	}
	
	@Length(min=0, max=11, message="所属门店号长度必须介于 0 和 11 之间")
	public String getBeStoreCode() {
		return beStoreCode;
	}

	public void setBeStoreCode(String beStoreCode) {
		this.beStoreCode = beStoreCode;
	}
	
	@Length(min=0, max=50, message="所属门店名称长度必须介于 0 和 50 之间")
	public String getBeStoreCnName() {
		return beStoreCnName;
	}

	public void setBeStoreCnName(String beStoreCnName) {
		this.beStoreCnName = beStoreCnName;
	}
	
	@Length(min=0, max=500, message="下单门店号，多个分号分隔长度必须介于 0 和 500 之间")
	public String getOrderStoreCode() {
		return orderStoreCode;
	}

	public void setOrderStoreCode(String orderStoreCode) {
		this.orderStoreCode = orderStoreCode;
	}
	
	@Length(min=0, max=500, message="下单门店名称,多个分号分隔长度必须介于 0 和 500 之间")
	public String getOrderStoreCnName() {
		return orderStoreCnName;
	}

	public void setOrderStoreCnName(String orderStoreCnName) {
		this.orderStoreCnName = orderStoreCnName;
	}

	public String getSysUserName() {
		return sysUserName;
	}

	public void setSysUserName(String sysUserName) {
		this.sysUserName = sysUserName;
	}

	public BigDecimal getRemainMoney() {
		return remainMoney;
	}

	public void setRemainMoney(BigDecimal remainMoney) {
		this.remainMoney = remainMoney;
	}

	public Integer getMoneyType() {
		return moneyType;
	}

	public void setMoneyType(Integer moneyType) {
		this.moneyType = moneyType;
	}

	public BigDecimal getSum() {
		return sum;
	}

	public void setSum(BigDecimal sum) {
		this.sum = sum;
	}
	
}